package com.huiquan.management.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.huiquan.framework.base.EnhancedBaseDao;
import com.huiquan.management.domain.Company;
import com.huiquan.management.domain.GradeParam;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class CompanyDao extends EnhancedBaseDao<Company> {

	@Resource(name = "sqlMapClient")
	private SqlMapClient sqlMapClient;

	public static final String space = "COMPANY.";

	public CompanyDao() {
		super(space);
	}

	public void batchInsert(List<GradeParam> list) {
		this.insert(space + "BATCH_INSERT", list, sqlMapClient);
	}
	public void updateUserCompany(Company company) {
		this.insert(space + "UPDATE_USER_COMPANY", company, sqlMapClient);
	}
}
